<html>
<head>
    <title>个人设置_个人中心_</title>
    <!--<link href="http://media6.tadu.com/web_dubbo_static//prod/css/personal300-6147084cb3.css" rel="stylesheet" type="text/css" />-->
    <!--<link href="http://media6.tadu.com/web_dubbo_static//prod/css/basicIfmt300-bdc5286c08.css" rel="stylesheet" type="text/css" />-->
    <!--<link href="http://media6.tadu.com/web_dubbo_static//prod/css/laydate300-bbe2f1f52c.css" rel="stylesheet" type="text/css"/>-->
    <link rel="stylesheet" href="/static/info/infohead.css">
    <link rel="stylesheet" href="/static/info/infohead_1.css">
</head>
<body>
<div id="content">
    <!-- 二级页面简易头部 -->
    <div class="seHeader">
        <div class="boxCenter seCon clearfix">
            <div class="headerL">

                <span>&nbsp;&nbsp;个人中心</span>
            </div>
            <div class="headerR">
                <a href="/">返回首页<i></i></a>
            </div>
        </div>
    </div>
    <div class="personal_box clearfix">
        <div class="left_box">
            <!--<div class="personal_author">-->
                <!--<img class="p_author" src="http://media6.tadu.com/web_dubbo_static//assets/images/v300/bookDetails/touxiang.png" data-src="http://media6.tadu.com//" />-->
                <!--<img class="vip" src="http://media6.tadu.com/web_dubbo_static//assets/images/v300/level/2.png" />-->
            <!--</div>-->
            <br>
            <br>
            <br>
            <div class="personal_left">
                <h4 class="user_name"> {$member.nickname}
                    <!--                  浮生
                         --> </h4>
                <div class="user_balance">
                    <span>剩余书币：</span>
                    <b>{$member.money}</b>
                </div>
                <div class="recharge_btn">
                    <a href="/index/pay/pay" target="_blank">立即充值</a>
                </div>
            </div>
            <!--<div class="personal_list">-->
                <!--<a href="/tadu/space/userinfo" class="current"> <i class="personal_setting"></i> <p>个人设置</p> </a>-->
            <!--</div>-->
        </div>
        <form action="/index/user/info" method="post" enctype="multipart/form-data">
            <input type="hidden" name="old_image" value="{$member.head_img}">
        <div class="right_box">
            <div class="record_top">
                <div class="clearfix">
                    <a href="javascript:void(0);" class="current_btn">基本资料</a>
                    <!--<a href="/tadu/space/avatar">头像设置</a>-->
                </div>
            </div>
            <div class="basicIfmt">
                <div class="block">
                    <em>昵称：</em>
                    <input type="text" placeholder="2-10位字符，支持中英文、数字、下划线或中划线" name="nickname" value="{$member.nickname}" class="nc" />
                    <div class="wrong hidden">
                        <i></i>2-10位字符，支持中英文、数字、下划线或中划线
                    </div>
                </div>
                <div class="block">
                    <em>账号：</em>
                    <input type="text" placeholder="2-10位字符，支持中英文、数字、下划线或中划线" name="mobile" value="{$member.mobile}" class="nc" />
                    <div class="wrong hidden">
                        <i></i>2-10位字符，支持中英文、数字、下划线或中划线
                    </div>
                </div>
                <input type="hidden" name="id" value="{$member.id}">
                <div class="block">
                    <em>头像：</em>
                    <div style="margin-left: 120px;">
                        <div id="fileList" class="uploader-list" style="width:50px;height:50px;">
                            <img id="imageview" width=30% border=0 src='{$member.head_img}'>
                        </div>
                        <div > <input type="file" name="image" id="fileupload" ></div>
                    </div>
                </div>

                <div class="block">
                    <em>自动购买章节：</em>
                    <label for="yes">
                        <input type="radio" value="1" id="yes" name="is_auto" {if $member.is_auto eq 1}checked{else/}{/if}>是
                    </label>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <label for="no">
                        <input type="radio" id="no" value="0" name="is_auto" {if $member.is_auto eq 0}checked{else/}{/if}>否
                    </label>
                </div>

                <div class="block">
                    <em>是否为作者：</em>
                    {if $member.type eq 0}
                    <label for="author">
                        <input type="radio" id="author" value="1" name="is_author" {if $member.is_author eq 1}checked{else/}{/if}>是
                    </label>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <label for="no_author">
                        <input type="radio" id="no_author" value="0" name="is_author" {if $member.is_author eq 0}checked{else/}{/if}>否
                    </label>
                    {else/}第三方登录 不可申请为作者{/if}
                </div>


                <div class="block">
                    <em>笔名：</em>
                    <input type="text" placeholder="填写后 不能修改" name="pen_name" value="{$member.pen_name}" {if empty($member.pen_name)}{else/}disabled{/if} class="nc" />
                    <div class="wrong hidden">
                        <i></i>2-10位字符，支持中英文、数字、下划线或中划线
                    </div>
                </div>
                <div class="block">
                    <em></em>
                    <!--<a href="javascript:void(0);" class="submit">保存</a>-->
                    <input type="submit" class="submit" value="保存修改">
                </div>
            </div>
        </div>
        </form>
    </div>
    <!-- 客服中心 -->
    <div class="boxCenter boutique stmSv" style="background:#fff;">
        <div class="stmTitle">
            客<br>服<br>中<br>心
        </div>
        <div class="aboutTadu">
            <span>客服电话：{$footer.phone}</span>
            <span>商务合作：{$footer.contact}</span>
        </div>
        <div class="aboutTadu aboutM">
            <span>在线客服：<a href="http://wpa.qq.com/msgrd?v=3&amp;uin={$footer.qq}&amp;site=qq&amp;menu=yes" target="_blank">开始交谈</a></span>
            <span>上班时间：{$footer.work}</span>
        </div>
        <!--<div class="aboutTadu aboutB">
            <span>微信公众号：辰星中文网</span>
            <span>新浪微博：辰星中文网</span>
        </div>-->
    </div>
    <!-- footer -->
    <!--<div class="footer">-->
        <!--<div class="boxCenter footWrap">-->
            <!--<div class="friendLink">-->
                <!--<h1>友情链接：</h1>-->
                <!--<span>合作QQ:10923209</span>-->
                <!--&lt;!&ndash;<div>&ndash;&gt;-->
                <!--&lt;!&ndash;<a href="http://www.170.com" target="_blank">天音移动</a>&ndash;&gt;-->
                <!--&lt;!&ndash;  <a href="http://yc.ireader.com.cn/" target="_blank">掌阅小说网</a>-->
                  <!--<a href="http://www.sweetread.net" target="_blank">甜悦读文学</a>-->
                  <!--<a href="http://www.yuedufang.com" target="_blank">悦读坊文学网</a>-->
                  <!--<a href="http://www.fbook.net" target="_blank">天下书盟</a>-->
                  <!--<a href="http://yuedu.163.com/yc" target="_blank">网易原创小说</a>-->
                  <!--<a href="http://www.baokan.name" target="_blank">爆侃网文</a>-->
                  <!--<a href="http://b.faloo.com" target="_blank">飞卢小说网</a>-->
                  <!--<a href="http://www.cqzww.com" target="_blank">传奇中文网</a>-->
                  <!--<a href="http://www.iciyuan.com/" target="_blank">iCiyuan轻小说</a>-->
                  <!--<a href="http://www.yokong.com/" target="_blank">悠空网</a>-->
                  <!--<a href="http://www.luochen.com/" target="_blank">落尘文学</a>-->
                  <!--<a href="http://www.yiyuetop.com/" target="_blank">颐阅</a>-->
                  <!--<a href="http://www.tenghen.com/" target="_blank">藤痕书院</a>-->
                  <!--<a href="http://www.alphafun.com/index.htm" target="_blank">天翼原创</a> &ndash;&gt;-->
                <!--&lt;!&ndash;</div>&ndash;&gt;-->
            <!--</div>-->
        <!--</div></div>-->
</div>
</body>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.4.1/dist/jquery.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.4.1/dist/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
<script>
    $(function() {
        /*原理是把本地图片路径："D(盘符):/image/..."转为"http://..."格式路径来进行显示图片*/
        $("#fileupload").change(function() {
            var $file = $(this);
            var objUrl = $file[0].files[0];
            //获得一个http格式的url路径:mozilla(firefox)||webkit or chrome
            var windowURL = window.URL || window.webkitURL;
            //createObjectURL创建一个指向该参数对象(图片)的URL
            var dataURL;
            dataURL = windowURL.createObjectURL(objUrl);
            $("#imageview").attr("src",dataURL);
        });
    });
</script>
<!--<script>
    $(".btn").click(function(){
        var nickname = $("input[name='nickname']").val();
        var mobile = $("input[name='mobile']").val();
        var is_auto = $("input[name='is_auto']:checked").val();
        var image = $("input[name='image']").val();
        $.post("/index/user/info",{nickname:nickname,mobile:mobile,is_auto:is_auto},function(data){
                console.log(data);
        })
    });
</script>-->
</html>